// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import Vuex from 'vuex';
import BaiduMap from 'vue-baidu-map';
import Vant from 'vant';
import axios from 'axios';
import 'vant/lib/index.css';
import App from './App';
import router from './router';
import './data/mocks';
import VueAwesomeSwiper from 'vue-awesome-swiper';
import 'swiper/dist/css/swiper.css';
import store from './store';
import 'lib-flexible';
import qs from 'Qs';
import thor from 'thor-x'
import 'thor-x/dist/index.css'
Vue.use(thor)
Vue.use(VueAwesomeSwiper);
Vue.use(Vant);
Vue.use(Vuex);
Vue.use(qs)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'vvXPtvFRauaH95HtunWjBiLZPCasV3Yy'
});
Vue.prototype.$ajax = axios;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
